home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pico / makefile.wnt < prev    next >
Makefile  |  1996-03-15  |  3KB  |  121 lines

  1. # $Id: makefile.wnt,v 4.3 1996/03/15 07:41:11 hubert Exp $
  2. #
  3. #   Michael Seibel
  4. #   Networks and Distributed Computing
  5. #   Computing and Communications
  6. #   University of Washington
  7. #   Administration Builiding, AG-44
  8. #   Seattle, Washington, 98195, USA
  9. #   Internet: mikes@cac.washington.edu
  10. #
  11. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  12. #
  13. #
  14. #   Pine and Pico are registered trademarks of the University of Washington.
  15. #   No commercial use of these trademarks may be made without prior written
  16. #   permission of the University of Washington.
  17. #
  18. #   Pine, Pico, and Pilot software and its included text are Copyright
  19. #   1989-1996 by the University of Washington.
  20. #
  21. #   The full text of our legal notices is contained in the file called
  22. #   CPYRIGHT, included with this distribution.
  23. #
  24.  
  25. #
  26. #
  27. # Makefile for MS-DOS version of the PINE composer library and 
  28. # stand-alone editor pico.
  29. #
  30. # MSC version of makefile
  31. #
  32. CC=cl
  33. RM=del
  34. CP=copy 
  35. RC=rc
  36.  
  37. #includes mouse support
  38. MOUSE=        -DMOUSE -DEX_MOUSE
  39. #includes symbol info for debugging 
  40. CDEBUG=    -Zi -Od
  41. LDEBUG= /DEBUG /DEBUGTYPE:CV
  42.  
  43.  
  44. CFLAGS=    $(CDEBUG) -nologo -MT $(NET) -DWIN32 -DANSI -DDOS -D_WINDOWS $(MOUSE) -DMSC_MALLOC
  45.  
  46. LFLAGS= $(LDEBUG)
  47.  
  48. RCFLAGS =
  49.  
  50. # switches for library building
  51. LIBS=libpico.lib oldnames.lib wsock32.lib user32.lib gdi32.lib shell32.lib comdlg32.lib
  52. LIBER=lib
  53. LIBARGS=/nologo /verbose
  54.  
  55. HFILES=    estruct.h edef.h efunc.h ebind.h pico.h osdep.h mswin.h
  56.  
  57. CFILES=        attach.c basic.c bind.c browse.c \
  58.         buffer.c composer.c display.c file.c fileio.c \
  59.         line.c mswin.c msmem.c osdep.c pico.c random.c region.c \
  60.         search.c msdlg.c msspell.c window.c word.c
  61.  
  62. OFILES=        attach.obj basic.obj bind.obj browse.obj \
  63.         buffer.obj composer.obj display.obj file.obj fileio.obj \
  64.         line.obj mswin.obj msmem.obj osdep.obj pico.obj random.obj \
  65.         region.obj search.obj msdlg.obj msspell.obj window.obj word.obj
  66.  
  67. all:        blddate.exe pico.exe
  68.  
  69. tags:        
  70.     ctags -s -t ..\\TAGS -m -h -p *.h *.c
  71.  
  72.  
  73.  
  74. .c.obj:
  75.     $(CC) -c $(CFLAGS) $(MAKEDIR)\$*.c
  76. #    $(LIBER) /out:libpico.lib $(LIBARGS) $*.obj
  77.  
  78. $(OFILES):    $(HFILES)
  79.  
  80. #
  81. # dependencies for the MS Windows versions of pico and libpico.a
  82. #
  83. osdep.c:    os_win.c dos_gen.h dos_gen.c
  84.         $(RM) osdep.c
  85.         $(CP) os_win.c osdep.c
  86.  
  87. osdep.h:    os_win.h 
  88.         $(RM) osdep.h
  89.         $(CP) os_win.h osdep.h
  90.  
  91.  
  92. libpico.lib:    osdep.c osdep.h $(OFILES)
  93.     del libpico.lib
  94.     $(LIBER) /out:libpico.lib $(OFILES)
  95.  
  96.  
  97. main.obj: main.c $(HFILES)
  98.     $(CC) /c $(CFLAGS) main.c
  99.  
  100. mswinver.obj:    mswinver.c
  101.     $(CC) /c $(CFLAGS) mswinver.c
  102.  
  103. mswin.res:  mswin.rc
  104.     $(RC) $(RCFLAGS) /fo mswin.res mswin.rc
  105.  
  106. blddate.exe: blddate.c
  107.     $(CC) blddate.c
  108.  
  109. pico.exe:: main.obj libpico.lib mswin.res $(OFILES) mswinver.obj
  110.     blddate > bdate.c
  111.     $(CC) /c $(CFLAGS) bdate.c
  112.     link /subsystem:windows /out:pico.exe $(LFLAGS) bdate.obj mswinver.obj main.obj mswin.res $(LIBS)
  113.  
  114. clean:
  115.     $(RM) *.lib
  116.     $(RM) *.obj
  117.     $(RM) mswin.res
  118.     $(RM) osdep.c
  119.     $(RM) osdep.h
  120.  
  121.